<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Learning PHP 5</title>
</head>

<body>

<?php

echo "hello world <br />";
require_once "general.php";
$ob = new Student($_POST["input_name"], $_POST["input_age"]);
echo $ob->getName() . " and " . $ob->getAge();

//echo $_POST["input_name"]." and " .$_POST["input_age"];

/*$con = mysql_connect("localhost","ashif","ashif");

if (!$con)
{
	die('Could not connect: ' . mysql_error());
}
  
mysql_select_db("ashif", $con);

mysql_query("INSERT INTO student (name, roll, cgpa)
VALUES ('".$_POST["input_name"]."', '."".', '3.7')");

  
mysql_close($con);
*/
?>


</body>
</html>
